class PlanetsForeignKeys < ActiveRecord::Migration
  def self.up
  	execute "ALTER TABLE planets ADD CONSTRAINT fk_planets_systems FOREIGN KEY (system_id)
  					REFERENCES systems(id) ON DELETE CASCADE"
  end

  def self.down
  	exectute "ALTER TABLE planetes DROP CONSTRAINT fk_planets_systems"
  end
end
